import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { AdDirective } from './ad.directive';
import { AdBannerComponent } from './ad-banner/ad-banner.component';
import { HeroJobAdComponent} from './ad-banner/HeroJobAdComponent';
import { AdsevriceService } from './ad-banner/adsevrice.service';

@NgModule({
  declarations: [
    AppComponent,
    AdDirective,
    AdBannerComponent,
    HeroJobAdComponent,
  ],
  imports: [
    BrowserModule,
    AppRoutingModule
  ],
  providers: [AdsevriceService],
  bootstrap: [AppComponent],
  // Angular 编译器会为模板中所引用的每个组件都生成一个 ComponentFactory 类。 但是，对于动态加载的组件，模板中不会出现对它们的选择器的引用
  entryComponents: [HeroJobAdComponent]
})
export class AppModule { }
